package ui;

import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class ControllerMainWindow implements ActionListener{

	private MainWindow MainWindow = null;
	
	public void start(){
			final ControllerMainWindow controllerWindow = this;
			EventQueue.invokeLater(new Runnable() {
				public void run() {
					try {
						MainWindow = new MainWindow();
						MainWindow.getBtnSendTask().addActionListener(controllerWindow);
						MainWindow.getFrame().setVisible(true);
					
					} catch (Exception e) {
						e.printStackTrace();
					}
				}
			});
	
	}
	
	
	
	@Override
	public void actionPerformed(ActionEvent arg0) {
		
		if(arg0.getActionCommand().equals("Send Task"))
		{
			
		}
		else if(arg0.getActionCommand().equals("Send Event"))
		{
			
		}
		
	}

}
